﻿#ifndef DWGOBJECT_H
#define DWGOBJECT_H

#include <QObject>
#include<QPainter>

class DwgObject : public QObject
{
    Q_OBJECT
public:
    explicit DwgObject(QObject *parent = nullptr);
    ~DwgObject(){}

    virtual void Draw(QPainter * painter) ;				// 纯虚函数不需要在基类中实现
    virtual void SetData(QPointF pt1,QPointF pt2) =0;
    virtual void Select(QPointF pt) = 0;
    bool mSelected = false;
    bool mDeleteed = false;

private:
    int mLineWidth = 2;								// 我们可以后面添加对它们的操作函数
    QColor mLineColor = Qt::black;


signals:
};

#endif // DWGOBJECT_H
